import service from '@/api/http';

const recordApi = {
  /*
    资金记录
    currencyId: "1001"
    endTime: "2023-05-05 23:59:59"
    orderId: ""
    pageNum: 1
    pageSize: 10
    startTime: "2023-04-28 00:00:00"
    status: ""
    type: ""
  */
  playGoldRecord: (params: object) => service.post('/hall/playGoldRecord/getUserGoldList', params),
  /** 投注记录
    currencyId: "1001"
    endTime: "2023-05-05 23:59:59"
    gameChannel: ""
    gameType: ""
    isBet: 0
    pageNum: 1
    pageSize: 10
    startTime: "2023-04-28 00:00:00"
    status: "3"
    timeType: 2
    userId: 86686644
   * */
  getUserBetInfo: (params: object) => service.post('/hall/userInfo/getUserBetInfo', params),
  /**
    currencyId: "1001"
    endTime: "2023-05-05 23:59:59"
    gameChannel: ""
    gameType: ""
    isBet: 0
    pageNum: 1
    pageSize: 10
    startTime: "2023-04-28 00:00:00"
    status: "3"
    timeType: 2
    userId: 86686644
   * */
  getUserBetInfoAllBetAndWin: (params: object) => service.post('/hall/userInfo/getUserBetInfoAllBetAndWin', params),
  /**
   * 所有游戏类型
   * */
  getGameTypeAndChannel: (params: object) => service.post('/hall/userInfo/getGameTypeAndChannel', params),
   /**
    * 获取个人信息
    * */
  getUserPersonal: (params: object) => service.post('/hall/playUserPersonal/getUserPersonal', params),
   /**
    修改个人信息
    adderss: " 55"
    area: "+55"
    birth: "2023-02-02"
    channelId: 100000000
    createTime: 1675944460753
    email: "020902@gmail.com"
    emailCode: "0"
    emailKeyId: ""
    facebook: "非死不可"
    id: 18
    name: "dasdasd"
    nickName: "昵称"
    phone: "89548552593"
    phoneCode: "0"
    phoneKeyId: ""
    telegram: "太累格曼"
    updateTime: 1677060419178
    userId: 86686644
    userName: "User86686644"
    wx: "微信"
  * */
  addUserPersonal: (params: object) => service.post('/hall/playUserPersonal/addUserPersonal', params),
  /**
    获取存取记录
    currencyId
    endTime
    orderId
    pageNum
    pageSize
    startTime
    status
    type
 * */
  getUserDrawList: (params: object) => service.post('/hall/playGoldRecord/getUserDrawList', params),
  /**
    救援金
    number
    type
  * */
  getJoinRescue: (params: object) => service.post('/hall/rescue/getJoinRescue', params),
  /**
    救援金领取
  * */
  addJoinRescue: (params: object) => service.post('/hall/rescue/addJoinRescue', params),
};
export default recordApi;
